package net.xxcxcxcx.xc_enhancedmob.config;

import com.google.gson.annotations.Expose;

public class BaseConfig implements CustomConfig {
    @Expose(deserialize = false, serialize = true)
    public String ConfigMessage = "ConfigVersion是用来确定配置文件版本的，不会被反序列化，会自动修正";
    @Expose(deserialize = false, serialize = true)
    //配置文件版本
    private int ConfigVersion = 1;

    private String name = "BaseConfig";//配置文件的名称
    private String filename = "";

    //修复损坏的配置文件数据
    @Override
    public void RepairData() {
    }

    @Override
    public int getConfigVersion() {
        return ConfigVersion;
    }

    @Override
    public void setConfigVersion(int configVersion) {
        ConfigVersion = configVersion;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getFilename() {
        return filename;
    }

    @Override
    public void setFilename(String filename) {
        this.filename = filename;
    }
}
